/****** Object:  Stored Procedure [dbo].sporder_itemUpdate Script Date: 11/24/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[sporder_itemUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[sporder_itemUpdate]
GO

/******************************************************************************
**		Name: [dbo].sporder_itemUpdate
**		Desc:
**
**		Return values:
**
**		Called by:
**
**		Parameters:
**		Input						Output
**		----------					----------
**
**		Auth: MinhSong
**		Date: 11/24/2012
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**
*******************************************************************************/

CREATE PROCEDURE [dbo].[sporder_itemUpdate]
(
	@ItemID int,
	@OrderID int,
	@ProductID int,
	@Quantity int,
	@Price real
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_order_items]
SET [OrderID] = @OrderID,
	[ProductID] = @ProductID,
	[Quantity] = @Quantity,
	[Price] = @Price
WHERE	[ItemID] = @ItemID
GO

--GRANT EXECUTE ON [dbo].[sporder_itemUpdate] TO [sa]
--GO
